package com.kgc.service.impl;

import com.kgc.pojo.Goods;
import com.kgc.service.GoodsService;
import org.apache.dubbo.config.annotation.Service;

@Service(version = "0.0.0")
public class GoodsServiceImpl implements GoodsService {

    public Goods getGoodsById(Integer id) {
        System.out.println("服务被调用..........");

        //查询数据库，根据ID获取商品详情
        Goods goods = new Goods(id,"爽肤水",88.66);

        return goods;
    }
}
